package com.wangsiyu.zookeeper.rmi.client;
import com.wangsiyu.zookeeper.rmi.common.HelloService;

public class Client {
    public static void main(String[] args) throws Exception {
        ServiceConsumer consumer = new ServiceConsumer();
        while (true){
            HelloService helloService = consumer.lookup();
            String result = helloService.sayHello("GTJin");
            System.out.println(result);
            Thread.sleep(6000);
        }
    }
}
